package org.example.utils;

import java.util.UUID;

/**
 * @ClassName TokenUtils
 * @Author LZB
 * @Date 2022/11/19 13:23
 * @Version 1.0
 **/
public class TokenUtils {
    public static String getToken(){
        String token = UUID.randomUUID().toString()
                .replaceAll("-", "").substring(0, 8);
        return token;
    }

}